<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>AJAX</title>
	<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
	<script>
		axios.defaults.withCredentials=true;//让ajax携带cookie
		axios({
	      method: 'post',
	      url: 'http://testlink.easypass.cn/AppToKenGet2/appapi/GetDealerReportInfo',//http://testlink.easypass.cn/ryhb/my.json
	      data: {
	      	a: 1,
	      	b: 2
	      },
	      headers: {
	        'X-Requested-With': 'XMLHttpRequest',
	        'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
	        'Cookie': document.cookie
	      }
	    }).then(
	      (response) => {
	        console.log(response)
	      }
	    ).catch(
	      (err) => {
	        console.log(err)
	      }
	    )
		// axios.post('//ep-svnserver30.tech.bitauto.com/FE/yi-oph5/gloryPartner5/my.json',{
		// 	a: 1
		// })
	 //  .then(function (response) {
	 //    console.log(response);
	 //  })
	 //  .catch(function (error) {
	 //    console.log(error);
	 //  });
	</script>
</body>
</html>